package jerry.html.data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;


/**
 * Class to hold player data.
 * 
 * @author (h0t@_G0|i
 */
public class Player implements Serializable{
	private static final long serialVersionUID = -5752853032550669306L;
	protected String playerName;
	protected String playerPassword;
	protected List<Score> nonStuffScore;
	protected List<Stuff> totalStuffUsed;
	protected Double totalTime = 0.0;
	private Double ping;
	private Double skill;
	private boolean isBot;
	private Integer team;
	protected HashMap<String, Double> spreeData;
	private Boolean winner;
	private Integer id;
	/**
	 * @return the playerName
	 */
	public String getPlayerName() {
		return playerName;
	}
	/**
	 * @param playerName the playerName to set
	 */
	public void setPlayerName(String playerName) {
		this.playerName = playerName;
	}
	/**
	 * @return the playerPassword
	 */
	public String getPlayerPassword() {
		return playerPassword;
	}
	/**
	 * @param playerPassword the playerPassword to set
	 */
	public void setPlayerPassword(String playerPassword) {
		this.playerPassword = playerPassword;
	}
	/**
	 * @return the totalScores
	 */
	public List<Score> getNonStuffScore() {
		return nonStuffScore;
	}
	/**
	 * @param totalScores the totalScores to set
	 */
	public void setNonStuffScore(List<Score> totalScores) {
		this.nonStuffScore = totalScores;
	}
	/**
	 * @return the totalStuffUsed
	 */
	public List<Stuff> getTotalStuffUsed() {
		if(totalStuffUsed == null) {
			totalStuffUsed = new ArrayList<Stuff>();
		}
		return totalStuffUsed;
	}
	/**
	 * @param totalStuffUsed the totalStuffUsed to set
	 */
	public void setTotalStuffUsed(List<Stuff> totalStuffUsed) {
		this.totalStuffUsed = totalStuffUsed;
	}
	/**
	 * @return the totalTime
	 */
	public Double getTotalTime() {
		return totalTime;
	}
	/**
	 * @param totalTime the totalTime to set
	 */
	public void setTotalTime(Double totalTime) {
		this.totalTime = totalTime;
	}
	/**
	 * @return the ping
	 */
	public Double getPing() {
		return ping;
	}
	/**
	 * @param ping the ping to set
	 */
	public void setPing(Double ping) {
		this.ping = ping;
	}
	/**
	 * @return the skill
	 */
	public Double getSkill() {
		return skill;
	}
	/**
	 * @param skill the skill to set
	 */
	public void setSkill(Double skill) {
		this.skill = skill;
	}
	/**
	 * @return the isBot
	 */
	public boolean isBot() {
		return isBot;
	}
	/**
	 * @param isBot the isBot to set
	 */
	public void setBot(boolean isBot) {
		this.isBot = isBot;
	}
	/**
	 * @return the spreeData
	 */
	public HashMap<String, Double> getSpreeData() {
		return spreeData;
	}
	/**
	 * @param spreeData the spreeData to set
	 */
	public void setSpreeData(HashMap<String, Double> spreeData) {
		this.spreeData = spreeData;
	}
	/**
	 * @return the winner
	 */
	public Boolean getWinner() {
		return winner;
	}
	/**
	 * @param winner the winner to set
	 */
	public void setWinner(Boolean winner) {
		this.winner = winner;
	}
	/**
	 * @return the team
	 */
	public Integer getTeam() {
		return team;
	}
	/**
	 * @param team the team to set
	 */
	public void setTeam(Integer team) {
		this.team = team;
	}
	/**
	 * @param id
	 */
	public void setId(Integer id) {
		this.id=id;
	}
	
	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}
}
